﻿/* 
 * Since 2008 - 2012
 */

package com.hh.bss.talent.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.*;

import com.hh.bss.base.*;
import com.hh.bss.common.TreeNodeDTO;
import com.hh.bss.common.page.*;
import com.hh.bss.common.page.impl.*;
import com.hh.bss.customer.convertor.ExtJsConvertor;
import com.hh.bss.talent.dao.*;
import com.hh.bss.talent.entity.*;
import com.hh.bss.talent.service.*;
import com.hh.bss.talent.vo.query.*;
import com.hh.bss.util.*;




@Service
@Transactional
public class CvFolderTypeServiceImpl extends BaseBusinessService<CvFolderType,java.lang.Integer>  implements CvFolderTypeService<CvFolderType,java.lang.Integer>{

	private CvFolderTypeDao cvFolderTypeDao;
	/**增加setXXXX()方法,spring就可以通过autowire自动设置对象属性,请注意大小写*/
	public void setCvFolderTypeDaoImpl(CvFolderTypeDao dao) {
		this.cvFolderTypeDao = dao;
	}
	public EntityDao getEntityDao() {
		return this.cvFolderTypeDao;
	}
	
	@Transactional(readOnly=true)
	public Page findPage(CvFolderTypeQuery query) {
		return cvFolderTypeDao.findPage(query);
	}
	public TreeNodeDTO getAllFolders() {
		List<CvFolderType> folderTypes = cvFolderTypeDao.findAll();
		return ExtJsConvertor.toTreeNodeDto(folderTypes);
	}
	public TreeNodeDTO getAllChildrenByRootId(int id) throws Exception {
		return null;
	}

	
}
